package com.user_service.repository;

import com.user_service.bean.Follow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface FollowRepository extends JpaRepository<Follow, Long> {
    boolean existsByFollowerIdAndFolloweeId(Long followerId, Long followeeId);
    
    void deleteByFollowerIdAndFolloweeId(Long followerId, Long followeeId);
    
    List<Follow> findByFolloweeId(Long followeeId);
    
    List<Follow> findByFollowerId(Long followerId);
}
